#ifndef SHADER_LOADER_H
#define SHADER_LOADER_H

#include "../Config/Export.h"
#include "../Core/ILoader.h"
#include "../Core/ShaderBase.h"

namespace epix {

class SHARED ShaderLoader : public ILoader<ShaderBase>
{
    public:

        ShaderLoader();
        ~ShaderLoader();

        virtual ShaderBase *loadFromFile(const char *filename);

    private:

        char *loadSource(const char *filename);

        GLuint loadShader(GLenum type, const char *filename);

};

}

#endif

